project(lpc.replayer  VERSION 1.0.0)

find_package(PCL)
add_library(${PROJECT_NAME} OBJECT      DispatchFileReader.cpp
                                        NoBufferedReplayImpl.cpp
                                        Replayer.cpp)

target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
target_include_directories(
        ${PROJECT_NAME}
        PUBLIC $<INSTALL_INTERFACE:include>
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
        PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
        include_directories(${PCL_INCLUDE_DIRS})
)

target_link_libraries(${PROJECT_NAME} PRIVATE pthread )
target_link_libraries(${PROJECT_NAME} PUBLIC lpc.util lpc.message lpc.messenger)
target_link_libraries(${PROJECT_NAME} PUBLIC ${PCL_COMMON_LIBRARIES} ${PCL_IO_LIBRARIES} ${PCL_LIBRARIES})

# # test
# add_executable(test_Detection test_Detection.cpp)
# target_link_libraries(test_Detection mec.util ${PROJECT_NAME})
